package com.bingxue.edu.common.constant;

import java.time.format.DateTimeFormatter;

public class DateConstants {

    public static final String FORMAT_TIME_HHmm = "HH:mm";
    public static final String FORMAT_TIME_YMD = "yyyy-MM-dd";
    public static final String FORMAT_TIME_MYSQL_YMD = "%Y-%m-%d";
    public static final String FORMAT_TIME_YMD_HMS = "yyyy-MM-dd HH:mm:ss";
    public static final String FORMAT_TIME_YMD_HM = "yyyy-MM-dd HH:mm";
    public static final String FORMAT_TIME_YMD_HM_CN = "MM月dd日 HH:mm";
    public static final DateTimeFormatter FORMATTER_YMD = DateTimeFormatter.ofPattern(FORMAT_TIME_YMD);
    public static final DateTimeFormatter FORMATTER_YMD_HMS = DateTimeFormatter.ofPattern(FORMAT_TIME_YMD_HMS);
    public static final DateTimeFormatter FORMATTER_yyyyMMdd = DateTimeFormatter.ofPattern("yyyyMMdd");
    public static final DateTimeFormatter FORMATTER_TIME_HHmm = DateTimeFormatter.ofPattern(FORMAT_TIME_HHmm);
    public static final DateTimeFormatter FORMATTER_TIME_HHmm_CN = DateTimeFormatter.ofPattern(FORMAT_TIME_YMD_HM_CN);
}
